/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.business.product.core.repository.entity;

import com.gitee.peigenlpy.actable.annotation.Column;
import com.gitee.peigenlpy.actable.annotation.Index;
import com.gitee.peigenlpy.actable.annotation.Table;
import com.gitee.peigenlpy.actable.annotation.Unique;
import com.gitee.peigenlpy.actable.constants.MySqlCharsetConstant;
import com.gitee.peigenlpy.actable.constants.MySqlEngineConstant;
import com.gitee.peigenlpy.actable.constants.MySqlTypeConstant;
import info.peigen.hotpot.common.core.enums.YesOrNo;
import info.peigen.hotpot.component.data.repository.beetlsql.entity.AbstractCreateTimeEntity;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;

/**
 * <b>(ProductBrandEntity)</b>
 * 品牌
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2021/11/3
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
@Table(name = "product_brand", comment = "商品品牌", charset = MySqlCharsetConstant.UTF8MB4, engine = MySqlEngineConstant.InnoDB)
@org.beetl.sql.annotation.entity.Table(name = "product_brand")
public class ProductBrandEntity extends AbstractCreateTimeEntity {
    @Column(name = "brand_id", type = MySqlTypeConstant.VARCHAR, length = 30, isNull = false, comment = "品牌Id")
    @org.beetl.sql.annotation.entity.Column("brand_id")
    @Unique(value = "brandId", columns = "brand_id")
    String  brandId;
    @Column(name = "name", type = MySqlTypeConstant.VARCHAR, length = 100, isNull = false, comment = "品牌名")
    @org.beetl.sql.annotation.entity.Column("name")
    @Index(value = "name", columns = "name")
    String  name;
    @Column(name = "favor_name", type = MySqlTypeConstant.VARCHAR, length = 100, comment = "品牌常用名")
    @org.beetl.sql.annotation.entity.Column("favor_name")
    String  favorName;
    @Column(name = "logo", type = MySqlTypeConstant.VARCHAR, length = 100, comment = "logo")
    @org.beetl.sql.annotation.entity.Column("logo")
    String  logo;
    @Column(name = "story", type = MySqlTypeConstant.VARCHAR, length = 2000, comment = "品牌故事")
    @org.beetl.sql.annotation.entity.Column("story")
    String  story;
    @Column(name = "relation", type = MySqlTypeConstant.VARCHAR, length = 2000, comment = "关联品牌")
    @org.beetl.sql.annotation.entity.Column("relation")
    String  relation;
    @Column(name = "self", type = MySqlTypeConstant.VARCHAR, length = 30, isNull = false, comment = "是否为自营品牌")
    @org.beetl.sql.annotation.entity.Column("self")
    @Index(value = "self", columns = "self")
    YesOrNo self;
    @Column(name = "operator_id", type = MySqlTypeConstant.VARCHAR, length = 30, comment = "操作员Id")
    @org.beetl.sql.annotation.entity.Column("operator_id")
    String  operatorId;
}